From: Georges Basile Stavracas Neto Date: Thu, 25 Feb 2021 13:35:30 +0000 (-0300) Subject: layout: Update workspace struts even while starting up X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~196 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e3f12e3e23d675a9257e6934597638c245b82563;p=gnome-shell.git layout: Update workspace struts even while starting up We want to avoid updating the input region on startup, since it incurs in roundtrips to the X server, but not workspaces struts, since they affect the visible clip of wallpapers in the workspace. Since next commits will make the overview be the after-boot screen, we really don't want the wallpaper to be clipped wrongly. Allow updating regions while starting up, but only workspace struts. Make sure input is not updated by accounting for 'this._startingUp' on 'wantsInputRegion'. Part-of: --- diff --git a/js/ui/layout.js b/js/ui/layout.js index bf251ba00..f35787a30 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -918,9 +918,6 @@ var LayoutManager = GObject.registerClass({ } _queueUpdateRegions() { - if (this._startingUp) - return; - if (!this._updateRegionIdle) { this._updateRegionIdle = Meta.later_add(Meta.LaterType.BEFORE_REDRAW, this._updateRegions.bind(this)); @@ -960,6 +957,7 @@ var LayoutManager = GObject.registerClass({ let rects = [], struts = [], i; let isPopupMenuVisible = global.top_window_group.get_children().some(isPopupMetaWindow); const wantsInputRegion = + !this._startingUp && !isPopupMenuVisible && Main.modalCount === 0 && !Meta.is_wayland_compositor();